#ifndef HYBRIDVIEW_H
#define HYBRIDVIEW_H

#include <QWebView>
#include <QGraphicsWebView>
#include <QGraphicsView>
#include "hybridfw_global.h"

class HybridPluginManager;
class QMainWindow;
class HybridWebPage;

class DLL_EXPORT GraphicsHybridView : public QGraphicsWebView
{
	Q_OBJECT
public:
    explicit GraphicsHybridView(QMainWindow *parentWindow, QGraphicsItem *parent, QString identifier);

    /**
      * Return instance of plugin manager.
      *
      * @return instance of plugin manager.
      */
    HybridPluginManager *plugins();

public:
    /**
     * Enable logging for debugging purposes. Log will be written to
     * c:\data\hag_console.log.
     */
     void enableLogging();

signals:
	 void contentsSizeChanged(QSize newSize);

private:
    HybridPluginManager	*m_pluginManager;
    HybridWebPage *m_hybridWebPage;
};

#endif // HYBRIDVIEW_H
